using System;


namespace _3DTicTacToe.Core
{
    sealed class GameOverEventArgs : EventArgs
    {
        public Player WinningPlayer { get; private set; }
        public Player LosingPlayer { get; private set; }

        public int[] WinningCoords { get; private set; }

        public bool IsDraw { get; private set; }
         
        public GameOverEventArgs(Player winningPlayer, Player losingPlayer, params int[] winningCoords)
        {
            if (winningCoords.Length != 12)
                throw new ArgumentException();

            IsDraw = false;
            WinningPlayer = winningPlayer;
            LosingPlayer = losingPlayer;
            WinningCoords = winningCoords;
        }

        public GameOverEventArgs()
        {
            IsDraw = true;
        }
    }
}